package com.ccf.business.knowledge.model.vo;

import cn.hutool.core.bean.BeanUtil;
import com.google.common.collect.Lists;
import com.ccf.business.knowledge.model.LabelData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述：
 *
 * @author xianggj
 * @Date 2022/2/21 15:07
 **/
@Data
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="标注详情", description="标注数据详情")
public class LabelDataVO extends LabelData {

    @ApiModelProperty(value = "文件预览路径")
    private String viewPath;

    @ApiModelProperty(value = "标注类型,实体标注：entity;关系标注：relation")
    private String labelType;

    @ApiModelProperty(value = "标注方式:均分标注：avg 共同标注：common")
    private String labelWay;

    @ApiModelProperty(value = "任务状态（0已添加,1标注中,2待审核,3已完成）")
    private Integer taskStatus;


    @ApiModelProperty(value = "标注实体列表")
    private List<LabelEntityVO> entityTypeList = Lists.newArrayList();

    @ApiModelProperty(value = "标注关系列表")
    private List<LabelRelationVO> relationTypeList = Lists.newArrayList();

    public LabelDataVO(LabelData labelData) {
        BeanUtil.copyProperties(labelData, this);
    }
}
